package hcn.protocol.ods.casehistory;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @Author: zhusm@bsoft.com.cn
 *
 * @Description: 申请类型
 *
 * @Create: 2019-06-20 17:06
 **/
@NoArgsConstructor
@AllArgsConstructor
public enum  BLApplyType {
    APPLYSELF("1","本人申请"),ALLPYPROXY("2","他人代办");
    private String code;
    private String description;

    public static final String getDescription(String code){
        for (BLApplyType type : BLApplyType.values()){
            if (type.getCode().equalsIgnoreCase(code.trim())){
                return type.description;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }
}
